import request from '@/utils/request';
// export async function query() {
//   return request('/api/users');
// }
export async function query() {
  return request('/api/users');
}
export async function queryCurrent() {
  return request('/api/currentUser');
}

// export async function queryCurrent() {
//   return request('/api/admin/admins/me');
// }

export async function queryNotices() {
  return request('/api/notices');
}

// 修改密码
export async function setPassword(params) {
  return request("/api/admin/setPassword", {
    method: "POST",
    data: params
  });
}
